package com.EstateManager.Dao;

import java.io.Serializable;

import org.hibernate.HibernateException;



public interface IModelBasicOperate <T,PK extends Serializable>{
	public T load(PK id) throws HibernateException;
	public T get(PK id) throws HibernateException;
	void persist(T entity) throws HibernateException;
	PK save(T entity) throws HibernateException;
	void saveOrUpdate(T entity) throws HibernateException;
	void detete(T entity) throws HibernateException;
	void flush() throws HibernateException;
	void update(T entity) throws HibernateException;
	void merge(T entity) throws HibernateException;
}
